package com.moto.Vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyz
 * @since 2023-08-29
 */
@Data
@ApiModel(value = "根据热门文章返回的对象", description = "")
public class BolgFindAllVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("博客id")
    @TableId(value = "bolg_id", type = IdType.AUTO)
    private Integer bolgId;

    @ApiModelProperty("标题")
    private String bolgTitle;

    @ApiModelProperty("浏览量")
    private Integer bolgWatch;

    @ApiModelProperty("作者")
    private String nickname;

    @ApiModelProperty("作者id")
    private Integer uId;

    @ApiModelProperty("正文图片")
    private String imgs;

    @ApiModelProperty("发表时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime pubTime;

    @ApiModelProperty("点赞")
    private Integer likess;

    @ApiModelProperty("用户头像")
    private String photo;

}
